import React from 'react'
import {Route, IndexRoute, IndexRedirect} from 'react-router'
import {
    App,
    NotFoundPage,
    Main,
    Welcome,
    Login,
} from './containers'
import {
    TableTree,
    ListTest,
    ListBoxTest,
    Test,
    SettingPage,
    SettingPageTab,
    ListAndTabs,
    TreeAndForm,
    CustomForm,
    DoubleList,
    FormComponent,
    ModalTransfer,
    Page2,
} from './example'

export default (
    <Route path="/" component={App}>
        <IndexRoute component={Login} />
        <Route path='login' component={Login} />
        <Route path="main" component={Main}>
            <IndexRoute component={Welcome} />
             {/*=================例子=======================*/}
            <Route path='tableTree' component={TableTree} />
            <Route path='listTest' component={ListTest} />
            <Route path='listBoxTest' component={ListBoxTest} />
            <Route path='test' component={Test} />
            <Route path='SettingPageTab' component={SettingPageTab} />
            <Route path='SettingPage' component={SettingPage} />
            <Route path='listAndTabs' component={ListAndTabs} />
            <Route path='CustomForm' component={CustomForm} />
            <Route path='FormComponent' component={FormComponent} />
            <Route path='doubleList' component={DoubleList} />
            <Route path='ModalTransfer' component={ModalTransfer} />        </Route>
        <Route path="*" component={NotFoundPage}/>
    </Route>

);
